import 'package:flutter/material.dart';
import 'package:flutter_app/generated/l10n.dart';
Widget remindItem(String text) {
  return Text.rich(
    TextSpan(
      children: [
        WidgetSpan(
            child: Icon(Icons.circle,
                size: 15, color: Colors.black.withOpacity(0.7))),
        WidgetSpan(
            child: SizedBox(
              width: 5,
            )),
        TextSpan(
            text: text, style: TextStyle(color: Colors.black.withOpacity(0.7))),
      ],
    ),
  );
}
class Remind extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return   //提示
      Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          //提示remind
          Text(
            S.of(context).remind,
            style: TextStyle(color: Colors.black, fontSize: 15),
          ),
          SizedBox(
            height: 10,
          ),
          remindItem(S.of(context).charge_remind1),
          SizedBox(
            height: 15,
          ),
          remindItem(S.of(context).charge_remind2),
          SizedBox(
            height: 15,
          ),
          remindItem(S.of(context).charge_remind3),
          SizedBox(
            height: 25,
          ),
        ],
      );
  }
}
